﻿<Window x:Class="YLClient.Froms.NewItem"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="定制" Loaded="Window_Loaded" WindowStyle="SingleBorderWindow" 
        WindowStartupLocation="CenterScreen" AllowDrop="False" 
        ResizeMode="NoResize" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:my="clr-namespace:YLClient.UserControls" 
        xmlns:myT="clr-namespace:YLClient.UserControls.TemplateControls" d:DesignHeight="350" d:DesignWidth="323" SizeToContent="WidthAndHeight">
    <Window.Resources>

    </Window.Resources>
    <DockPanel>

        <Grid DockPanel.Dock="Top">
            <Grid.Resources>
                <Style  TargetType="TextBlock">
                    <!--不设置key，代表应用所有的该类控件-->
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                    <Setter Property="Height" Value="30"/>
                </Style>
                <Style TargetType="TextBox">
                    <Setter Property="Height" Value="23"/>
                    <Setter Property="Width" Value="120"/>
                </Style>
                <Style TargetType="Button">
                    <Setter Property="Height" Value="50"/>
                </Style>
            </Grid.Resources>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width=".4*"/>
                <ColumnDefinition Width=".5*" />

            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" 
                       Name="textBlock1" Text="模板:" Padding="0" VerticalAlignment="Center" />
            <ComboBox Grid.Row="0" Grid.Column="1" 
                      Height="23"   
                      Name="cmbTemplateName" TabIndex="1" 
                      SelectionChanged="cmbTemplateName_SelectionChanged" Margin="0,0,10,0" Padding="0" />
            <ListBox Name="lstRequireValues"  Grid.Row="1" Grid.ColumnSpan="3"  HorizontalAlignment="Center" >
            </ListBox>
        </Grid>

        <Grid DockPanel.Dock="Bottom" >
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Button 
                     Grid.Row="0"
                    HorizontalAlignment="Center"
                       Height="50" Width="100"
                       Content="添加"  
                       Name="btnAdd"  
                       Click="btnAdd_Click" 
                       MinWidth="89" 
                       TabIndex="5"
                       FontStretch="Normal" />
            <ProgressBar  
                Grid.Row="1"
                         Visibility="Hidden"
                         Height="20" 
                         Margin="0" 
                         Name="progressBar"
                         Width="Auto" Value="100" 
                         HorizontalAlignment="Stretch" />
            <TextBlock 
                    Grid.Row="1"
                       Text="准备就绪" 
                       Name="txtbStatus" />
        </Grid>
        <ListBox  Name="lstFiles"  
             HorizontalContentAlignment="Stretch"
                   >
        </ListBox>
    </DockPanel>

</Window>
